<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <ul>
    <li>第1个</li>
    <li>第2个</li>
    <li>第3个</li>
    <li>第4个</li>
    <li>第5个</li>
  </ul>
  <script>
    var list = document.querySelectorAll('li')
    for (var i = 0; i < list.length; i++) {

      list[i].addEventListener('click', function () {
        console.log(this);
        setInterval(() => {
          console.log(1111);
        }, 1000)
      })
    }
  </script>
</body>

</html>